unit Interfaces.IAcessoContract;

interface

uses
  Generics.Collections,
  Models.Acesso;

type
  TActionType = (
    atSelect,
    atInsert,
    atUpdate,
    atDelete
  );

  IAcessoContract = interface
  ['{B8937732-F7A1-4AB3-B0C2-6AF76B927BD2}']
    function Get(username, module: string; action: TActionType): TAcesso;
    function GetList(username: string; module: string=''): TList<TAcesso>;
  end;

implementation

end.
